<%--
  Created by IntelliJ IDEA.
  User: kurong
  Date: 2021/10/22
  Time: 11:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<div id="div1">
    <p>欢迎使用 <b>wangEditor</b> 富文本编辑器</p>
</div>
<button class="update">添加介绍</button>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/jquery/jquery-3.5.1.min.js"
        charset="utf-8"></script>

<script type="text/javascript" src="${pageContext.request.contextPath}/res/jquery/jquery.form.js"
        charset="utf-8"></script>

<script
        type="text/javascript"
        src="${pageContext.request.contextPath}/wangeditor/dist/wangEditor.js"
></script>



<!-- 引入 wangEditor.min.js -->
<script type="text/javascript">
    const E = window.wangEditor
    const editor = new E('#div1')
    // 或者 const editor = new E( document.getElementById('div1') )
    editor.create()
</script>


</body>
</html>
